package com.wt.admin.mapper.chat;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wt.admin.domain.dto.chat.ChatModelContentDTO;
import com.wt.admin.domain.entity.chat.ChatModelContentEntity;
import com.wt.admin.domain.entity.chat.ChatModelFileEntity;
import com.wt.admin.domain.vo.chart.ChatModelContentVO;
import com.wt.admin.domain.vo.sys.UserVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ChatModelContentMapper extends BaseMapper<ChatModelContentEntity> {

    @Delete("delete from chat_model_content where model_id = #{id}")
    void delByModelId(@Param("id") Integer id);

    List<ChatModelContentVO> modeContentList(@Param("data") ChatModelContentDTO data,@Param("user") UserVO userVO);
}
